package com.myzl.coal.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.myzl.coal.domain.ThresholdData;

import java.util.List;

/**
 * 阈值Mapper接口
 *
 * @author myzl
 * @date 2022-11-28
 */
public interface ThresholdDataMapper extends BaseMapper<ThresholdData>
{
    /**
     * 查询阈值
     *
     * @param id 阈值主键
     * @return 阈值
     */
    public ThresholdData selectThresholdDataById(Long id);

    /**
     * 查询阈值列表
     *
     * @param thresholdData 阈值
     * @return 阈值集合
     */
    public List<ThresholdData> selectThresholdDataList(ThresholdData thresholdData);

    /**
     * 新增阈值
     *
     * @param thresholdData 阈值
     * @return 结果
     */
    public int insertThresholdData(ThresholdData thresholdData);

    /**
     * 修改阈值
     *
     * @param thresholdData 阈值
     * @return 结果
     */
    public int updateThresholdData(ThresholdData thresholdData);

    /**
     * 删除阈值
     *
     * @param id 阈值主键
     * @return 结果
     */
    public int deleteThresholdDataById(Long id);

    /**
     * 批量删除阈值
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteThresholdDataByIds(Long[] ids);
}
